package cn.livingCloud.service.impl;

import cn.livingCloud.entity.core.PushGroupMember;
import cn.livingCloud.repository.PushGroupMemberMapper;
import cn.livingCloud.service.PushGroupMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by DingJie on 2016/6/22.
 */
@Service
public class PushGroupMemberServiceImpl implements PushGroupMemberService {
    @Autowired
    PushGroupMemberMapper mapper;

    @Override
    public boolean checkMemberBound(String memberUuid) {
        List<PushGroupMember> list = mapper.findByMemberUuid(memberUuid);
        return list.size() > 0;
    }
}
